<!DOCTYPE html>
<html lang="en">
    <head>
        <meta charset="utf-8">
        <meta http-equiv="X-UA-Compatible" content="IE=edge">
        <meta name="viewport" content="width=device-width, initial-scale=1.0">
        <meta name="description" content="None">
        
        <link rel="canonical" href="https://mockserver.hissummer.com/">
        <link rel="shortcut icon" href="img/favicon.ico">
        <title>Hissummer-mockserver</title>
        <link href="css/bootstrap-custom.min.css" rel="stylesheet">
        <link href="css/font-awesome.min.css" rel="stylesheet">
        <link href="css/base.css" rel="stylesheet">
        <link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/styles/github.min.css">
        <!-- HTML5 shim and Respond.js IE8 support of HTML5 elements and media queries -->
        <!--[if lt IE 9]>
            <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
            <script src="https://oss.maxcdn.com/libs/respond.js/1.4.2/respond.min.js"></script>
        <![endif]-->

        <script src="js/jquery-1.10.2.min.js" defer></script>
        <script src="js/bootstrap-3.0.3.min.js" defer></script>
        <script src="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/9.12.0/highlight.min.js"></script>
        <script>hljs.initHighlightingOnLoad();</script> 
    </head>

    <body class="homepage">

        <div class="navbar navbar-default navbar-fixed-top" role="navigation">
            <div class="container">

                <!-- Collapsed navigation -->
                <div class="navbar-header">
                    <!-- Expander button -->
                    <button type="button" class="navbar-toggle" data-toggle="collapse" data-target=".navbar-collapse">
                        <span class="sr-only">Toggle navigation</span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                        <span class="icon-bar"></span>
                    </button>
                    <a class="navbar-brand" href=".">Hissummer-mockserver</a>
                </div>

                <!-- Expanded navigation -->
                <div class="navbar-collapse collapse">
                        <!-- Main navigation -->
                        <ul class="nav navbar-nav">
                            <li class="active">
                                <a href=".">主页</a>
                            </li>
                            <li >
                                <a href="quickstart/">快速开始</a>
                            </li>
                            <li >
                                <a href="documents/catalog/">文档</a>
                            </li>
                            <li >
                                <a href="https://github.com/hissummer-mockserver/mockServer/issues">后端问题提交</a>
                            </li>
                            <li >
                                <a href="https://github.com/hissummer-mockserver/mockserverAdminUI/issues">前端问题提交</a>
                            </li>
                        </ul>

                    <ul class="nav navbar-nav navbar-right">
                        <li>
                            <a href="#" data-toggle="modal" data-target="#mkdocs_search_modal">
                                <i class="fa fa-search"></i> Search
                            </a>
                        </li>
                            <li class="disabled">
                                <a rel="next" >
                                    <i class="fa fa-arrow-left"></i> Previous
                                </a>
                            </li>
                            <li >
                                <a rel="prev" href="quickstart/">
                                    Next <i class="fa fa-arrow-right"></i>
                                </a>
                            </li>
                    </ul>
                </div>
            </div>
        </div>

        <div class="container">
                <div class="col-md-3"><div class="bs-sidebar hidden-print affix well" role="complementary">
    <ul class="nav bs-sidenav">
        <li class="main active"><a href="#hissummer-mockserver">Hissummer Mockserver</a></li>
        <li class="main "><a href="#_1">介绍</a></li>
        <li class="main "><a href="#_2">支持的功能</a></li>
        <li class="main "><a href="#_3">部署</a></li>
            <li><a href="#docker-compose">docker-compose 部署</a></li>
            <li><a href="#docker">docker部署</a></li>
            <li><a href="#docker-mongodb">docker + mongodb 部署</a></li>
            <li><a href="#war">war包部署</a></li>
        <li class="main "><a href="#_4">部署后初始用户名密码</a></li>
        <li class="main "><a href="#_5">快速开始</a></li>
        <li class="main "><a href="#_6">文档</a></li>
        <li class="main "><a href="#_7">赞助</a></li>
    </ul>
</div></div>
                <div class="col-md-9" role="main">

<h1 id="hissummer-mockserver"><strong>Hissummer Mockserver</strong></h1>
<hr />
<h1 id="_1">介绍</h1>
<hr />
<p>mockserver是模拟http返回报文的一个mock 服务。 可以用于微服务架构下和前端（h5，native app）模拟后端服务报文的开发联调和测试。
hissummer mockserver 还支持mockserver注册到eureka发现中心，可以方便的进行eureka服务实例的mock测试。
<img alt="homepage" src="img/homepage.png" /></p>
<h1 id="_2">支持的功能</h1>
<hr />
<ul>
<li>mock http协议响应报文，响应头</li>
<li>mock 规则的管理</li>
<li>支持eureka 服务的注册，心跳，取消注册功能</li>
</ul>
<h1 id="_3">部署</h1>
<hr />
<p>为了更快速的开始，推荐使用docker-compose或者docker进行部署。</p>
<h2 id="docker-compose">docker-compose 部署</h2>
<pre><code>$ git clone git@github.com:hissummer-mockserver/buildStandaloneWar.git
$ cd compose
$ sudo docker-compose up -d
</code></pre>

<h2 id="docker">docker部署</h2>
<p>首先启动mongodb docker服务，然后启动hissummer-mockserver</p>
<pre><code>$ sudo docker network create hissummer
$ sudo docker run -d --name hissummer-mongodb --network hissummer  mongo:4.2.5-bionic
$ sudo docker run -d --name hissummer-mockserver --network hissummer -e mongodbHost=hissummer-mongodb -e mongodbPort=27017 -p 8080:8080   nighteblis/hissummer-mockserver
</code></pre>

<h2 id="docker-mongodb">docker + mongodb 部署</h2>
<p>请先部署mongodb服务，<a href="deploy/deploymongodb/">如何部署mongodb？</a>。</p>
<pre><code>$ sudo docker run -d --name hissummer-mockserver -e mongodbHost=mongodbHost -e mongodbPort=27017 -p 8080:8080   nighteblis/hissummer-mockserver
</code></pre>

<h2 id="war">war包部署</h2>
<ol>
<li><a href="deploy/deploymongodb/">部署mongodb</a></li>
<li><a href="deploy/compile/">war包构建和部署</a></li>
</ol>
<h1 id="_4">部署后初始用户名密码</h1>
<p>用户名:admin
密码:hissummer.com</p>
<hr />
<h1 id="_5">快速开始</h1>
<hr />
<p><a href="quickstart/">快速开始</a></p>
<h1 id="_6">文档</h1>
<hr />
<p><a href="documents/catalog/">文档</a></p>
<h1 id="_7">赞助</h1>
<hr />
<p>paypal account: <a href="https://www.paypal.me/nighteblis">https://www.paypal.me/nighteblis</a></p></div>
        </div>

        <footer class="col-md-12">
            <hr>
            <p>Documentation built with <a href="https://www.mkdocs.org/">MkDocs</a>.</p>
        </footer>
        <script>
            var base_url = ".",
                shortcuts = {"search": 83, "next": 78, "help": 191, "previous": 80};
        </script>
        <script src="js/base.js" defer></script>
        <script src="search/main.js" defer></script>

        <div class="modal" id="mkdocs_search_modal" tabindex="-1" role="dialog" aria-labelledby="Search Modal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="exampleModalLabel">Search</h4>
            </div>
            <div class="modal-body">
                <p>
                    From here you can search these documents. Enter
                    your search terms below.
                </p>
                <form role="form">
                    <div class="form-group">
                        <input type="text" class="form-control" placeholder="Search..." id="mkdocs-search-query" title="Type search term here">
                    </div>
                </form>
                <div id="mkdocs-search-results"></div>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div><div class="modal" id="mkdocs_keyboard_modal" tabindex="-1" role="dialog" aria-labelledby="Keyboard Shortcuts Modal" aria-hidden="true">
    <div class="modal-dialog">
        <div class="modal-content">
            <div class="modal-header">
                <button type="button" class="close" data-dismiss="modal"><span aria-hidden="true">&times;</span><span class="sr-only">Close</span></button>
                <h4 class="modal-title" id="exampleModalLabel">Keyboard Shortcuts</h4>
            </div>
            <div class="modal-body">
              <table class="table">
                <thead>
                  <tr>
                    <th style="width: 20%;">Keys</th>
                    <th>Action</th>
                  </tr>
                </thead>
                <tbody>
                  <tr>
                    <td class="help shortcut"><kbd>?</kbd></td>
                    <td>Open this help</td>
                  </tr>
                  <tr>
                    <td class="next shortcut"><kbd>n</kbd></td>
                    <td>Next page</td>
                  </tr>
                  <tr>
                    <td class="prev shortcut"><kbd>p</kbd></td>
                    <td>Previous page</td>
                  </tr>
                  <tr>
                    <td class="search shortcut"><kbd>s</kbd></td>
                    <td>Search</td>
                  </tr>
                </tbody>
              </table>
            </div>
            <div class="modal-footer">
            </div>
        </div>
    </div>
</div>

    </body>
</html>

<!--
MkDocs version : 1.0.4
Build Date UTC : 2022-08-06 17:18:33
-->
